<template>
  <div>
    <input type="text" ref="txt" v-model="value" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "value"
    };
  },
  methods: {
    focus() {
      this.$refs.txt.focus();
    }
  }
};
</script>
